const READ = 0b0001;
const WRITE = 0b0010;
const EDIT = 0b0100;
const DELETE = 0b1000;

const rw = READ | WRITE;
//0001
//0010
// rw 0011

// 0011
// 0010
// 0010


if ((rw & DELETE)) {
	//有读取的权限
	console.log("23");
}
console.log((rw & DELETE).toString(2));
